Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move deserialization from KafkaConsumerActor to KafkaConsumer #902

Merged
merged 6 commits into from
Mar 15, 2022

Conversation

bplommer
Copy link
Member

@bplommer bplommer commented Mar 13, 2022

Postpones deserialising records until they are pushed onto a consumer stream, reducing the complexity of KafkaConsumerActor.

This means that a deserialization error in a partitioned stream will cause only the specific partition stream to fail, rather than crash the actor - I think that's a good thing, but maybe we should reproduce the existing behaviour (with a configurable toggle) in the 2.x series?

@bplommer bplommer changed the title Re Move deserialization from KafkaConsumerActor to KafkaConsumer Remove deserialization from KafkaConsumerActor to KafkaConsumer Mar 13, 2022
@bplommer bplommer changed the title Remove deserialization from KafkaConsumerActor to KafkaConsumer Move deserialization from KafkaConsumerActor to KafkaConsumer Mar 13, 2022
@bplommer bplommer marked this pull request as ready for review March 14, 2022 09:59
@bplommer bplommer requested review from LMnet and vlovgr and removed request for LMnet March 14, 2022 09:59
Copy link
Member

@LMnet LMnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice simplification!

@bplommer
Copy link
Member Author

I think I'll go ahead and merge this with the behaviour change, but put out a release candidate before the next version to give a chance to test it in the wild.

@bplommer bplommer merged commit 19f5210 into series/2.x Mar 15, 2022
@LMnet
Copy link
Member

LMnet commented Mar 16, 2022

This means that a deserialization error in a partitioned stream will cause only the specific partition stream to fail, rather than crash the actor - I think that's a good thing, but maybe we should reproduce the existing behaviour (with a configurable toggle) in the 2.x series?

I think we should change the behavior.

@bplommer
Copy link
Member Author

Meaning - you think we should release the change from this PR as-is?

@LMnet
Copy link
Member

LMnet commented Mar 16, 2022

Meaning - you think we should release the change from this PR as-is?

Yes. I don't think that the current behavior could be considered by someone as an intended or as a "feature".

@bplommer bplommer deleted the untyped-actor branch April 1, 2022 07:51
@bplommer bplommer restored the untyped-actor branch May 13, 2022 13:28
bplommer added a commit that referenced this pull request May 13, 2022
This reverts commit 19f5210, reversing
changes made to 5aa90d7.
bplommer added a commit that referenced this pull request May 15, 2022
@bplommer bplommer deleted the untyped-actor branch March 24, 2023 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants